package com.TJGD.projectModule.pojo;

import java.util.ArrayList;
import java.util.List;

public class pCostQuery {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public pCostQuery() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPcidIsNull() {
            addCriterion("pcid is null");
            return (Criteria) this;
        }

        public Criteria andPcidIsNotNull() {
            addCriterion("pcid is not null");
            return (Criteria) this;
        }

        public Criteria andPcidEqualTo(Long value) {
            addCriterion("pcid =", value, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidNotEqualTo(Long value) {
            addCriterion("pcid <>", value, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidGreaterThan(Long value) {
            addCriterion("pcid >", value, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidGreaterThanOrEqualTo(Long value) {
            addCriterion("pcid >=", value, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidLessThan(Long value) {
            addCriterion("pcid <", value, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidLessThanOrEqualTo(Long value) {
            addCriterion("pcid <=", value, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidIn(List<Long> values) {
            addCriterion("pcid in", values, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidNotIn(List<Long> values) {
            addCriterion("pcid not in", values, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidBetween(Long value1, Long value2) {
            addCriterion("pcid between", value1, value2, "pcid");
            return (Criteria) this;
        }

        public Criteria andPcidNotBetween(Long value1, Long value2) {
            addCriterion("pcid not between", value1, value2, "pcid");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumIsNull() {
            addCriterion("project_cost_num is null");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumIsNotNull() {
            addCriterion("project_cost_num is not null");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumEqualTo(String value) {
            addCriterion("project_cost_num =", value, "projectCostNum");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumNotEqualTo(String value) {
            addCriterion("project_cost_num <>", value, "projectCostNum");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumGreaterThan(String value) {
            addCriterion("project_cost_num >", value, "projectCostNum");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumGreaterThanOrEqualTo(String value) {
            addCriterion("project_cost_num >=", value, "projectCostNum");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumLessThan(String value) {
            addCriterion("project_cost_num <", value, "projectCostNum");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumLessThanOrEqualTo(String value) {
            addCriterion("project_cost_num <=", value, "projectCostNum");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumLike(String value) {
            addCriterion("project_cost_num like", value, "projectCostNum");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumNotLike(String value) {
            addCriterion("project_cost_num not like", value, "projectCostNum");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumIn(List<String> values) {
            addCriterion("project_cost_num in", values, "projectCostNum");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumNotIn(List<String> values) {
            addCriterion("project_cost_num not in", values, "projectCostNum");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumBetween(String value1, String value2) {
            addCriterion("project_cost_num between", value1, value2, "projectCostNum");
            return (Criteria) this;
        }

        public Criteria andProjectCostNumNotBetween(String value1, String value2) {
            addCriterion("project_cost_num not between", value1, value2, "projectCostNum");
            return (Criteria) this;
        }

        public Criteria andSubjectNameIsNull() {
            addCriterion("subject_name is null");
            return (Criteria) this;
        }

        public Criteria andSubjectNameIsNotNull() {
            addCriterion("subject_name is not null");
            return (Criteria) this;
        }

        public Criteria andSubjectNameEqualTo(String value) {
            addCriterion("subject_name =", value, "subjectName");
            return (Criteria) this;
        }

        public Criteria andSubjectNameNotEqualTo(String value) {
            addCriterion("subject_name <>", value, "subjectName");
            return (Criteria) this;
        }

        public Criteria andSubjectNameGreaterThan(String value) {
            addCriterion("subject_name >", value, "subjectName");
            return (Criteria) this;
        }

        public Criteria andSubjectNameGreaterThanOrEqualTo(String value) {
            addCriterion("subject_name >=", value, "subjectName");
            return (Criteria) this;
        }

        public Criteria andSubjectNameLessThan(String value) {
            addCriterion("subject_name <", value, "subjectName");
            return (Criteria) this;
        }

        public Criteria andSubjectNameLessThanOrEqualTo(String value) {
            addCriterion("subject_name <=", value, "subjectName");
            return (Criteria) this;
        }

        public Criteria andSubjectNameLike(String value) {
            addCriterion("subject_name like", value, "subjectName");
            return (Criteria) this;
        }

        public Criteria andSubjectNameNotLike(String value) {
            addCriterion("subject_name not like", value, "subjectName");
            return (Criteria) this;
        }

        public Criteria andSubjectNameIn(List<String> values) {
            addCriterion("subject_name in", values, "subjectName");
            return (Criteria) this;
        }

        public Criteria andSubjectNameNotIn(List<String> values) {
            addCriterion("subject_name not in", values, "subjectName");
            return (Criteria) this;
        }

        public Criteria andSubjectNameBetween(String value1, String value2) {
            addCriterion("subject_name between", value1, value2, "subjectName");
            return (Criteria) this;
        }

        public Criteria andSubjectNameNotBetween(String value1, String value2) {
            addCriterion("subject_name not between", value1, value2, "subjectName");
            return (Criteria) this;
        }

        public Criteria andFeeDetailIsNull() {
            addCriterion("fee_detail is null");
            return (Criteria) this;
        }

        public Criteria andFeeDetailIsNotNull() {
            addCriterion("fee_detail is not null");
            return (Criteria) this;
        }

        public Criteria andFeeDetailEqualTo(String value) {
            addCriterion("fee_detail =", value, "feeDetail");
            return (Criteria) this;
        }

        public Criteria andFeeDetailNotEqualTo(String value) {
            addCriterion("fee_detail <>", value, "feeDetail");
            return (Criteria) this;
        }

        public Criteria andFeeDetailGreaterThan(String value) {
            addCriterion("fee_detail >", value, "feeDetail");
            return (Criteria) this;
        }

        public Criteria andFeeDetailGreaterThanOrEqualTo(String value) {
            addCriterion("fee_detail >=", value, "feeDetail");
            return (Criteria) this;
        }

        public Criteria andFeeDetailLessThan(String value) {
            addCriterion("fee_detail <", value, "feeDetail");
            return (Criteria) this;
        }

        public Criteria andFeeDetailLessThanOrEqualTo(String value) {
            addCriterion("fee_detail <=", value, "feeDetail");
            return (Criteria) this;
        }

        public Criteria andFeeDetailLike(String value) {
            addCriterion("fee_detail like", value, "feeDetail");
            return (Criteria) this;
        }

        public Criteria andFeeDetailNotLike(String value) {
            addCriterion("fee_detail not like", value, "feeDetail");
            return (Criteria) this;
        }

        public Criteria andFeeDetailIn(List<String> values) {
            addCriterion("fee_detail in", values, "feeDetail");
            return (Criteria) this;
        }

        public Criteria andFeeDetailNotIn(List<String> values) {
            addCriterion("fee_detail not in", values, "feeDetail");
            return (Criteria) this;
        }

        public Criteria andFeeDetailBetween(String value1, String value2) {
            addCriterion("fee_detail between", value1, value2, "feeDetail");
            return (Criteria) this;
        }

        public Criteria andFeeDetailNotBetween(String value1, String value2) {
            addCriterion("fee_detail not between", value1, value2, "feeDetail");
            return (Criteria) this;
        }

        public Criteria andPreMoneyIsNull() {
            addCriterion("pre_money is null");
            return (Criteria) this;
        }

        public Criteria andPreMoneyIsNotNull() {
            addCriterion("pre_money is not null");
            return (Criteria) this;
        }

        public Criteria andPreMoneyEqualTo(Double value) {
            addCriterion("pre_money =", value, "preMoney");
            return (Criteria) this;
        }

        public Criteria andPreMoneyNotEqualTo(Double value) {
            addCriterion("pre_money <>", value, "preMoney");
            return (Criteria) this;
        }

        public Criteria andPreMoneyGreaterThan(Double value) {
            addCriterion("pre_money >", value, "preMoney");
            return (Criteria) this;
        }

        public Criteria andPreMoneyGreaterThanOrEqualTo(Double value) {
            addCriterion("pre_money >=", value, "preMoney");
            return (Criteria) this;
        }

        public Criteria andPreMoneyLessThan(Double value) {
            addCriterion("pre_money <", value, "preMoney");
            return (Criteria) this;
        }

        public Criteria andPreMoneyLessThanOrEqualTo(Double value) {
            addCriterion("pre_money <=", value, "preMoney");
            return (Criteria) this;
        }

        public Criteria andPreMoneyIn(List<Double> values) {
            addCriterion("pre_money in", values, "preMoney");
            return (Criteria) this;
        }

        public Criteria andPreMoneyNotIn(List<Double> values) {
            addCriterion("pre_money not in", values, "preMoney");
            return (Criteria) this;
        }

        public Criteria andPreMoneyBetween(Double value1, Double value2) {
            addCriterion("pre_money between", value1, value2, "preMoney");
            return (Criteria) this;
        }

        public Criteria andPreMoneyNotBetween(Double value1, Double value2) {
            addCriterion("pre_money not between", value1, value2, "preMoney");
            return (Criteria) this;
        }

        public Criteria andCurCostIsNull() {
            addCriterion("cur_cost is null");
            return (Criteria) this;
        }

        public Criteria andCurCostIsNotNull() {
            addCriterion("cur_cost is not null");
            return (Criteria) this;
        }

        public Criteria andCurCostEqualTo(Double value) {
            addCriterion("cur_cost =", value, "curCost");
            return (Criteria) this;
        }

        public Criteria andCurCostNotEqualTo(Double value) {
            addCriterion("cur_cost <>", value, "curCost");
            return (Criteria) this;
        }

        public Criteria andCurCostGreaterThan(Double value) {
            addCriterion("cur_cost >", value, "curCost");
            return (Criteria) this;
        }

        public Criteria andCurCostGreaterThanOrEqualTo(Double value) {
            addCriterion("cur_cost >=", value, "curCost");
            return (Criteria) this;
        }

        public Criteria andCurCostLessThan(Double value) {
            addCriterion("cur_cost <", value, "curCost");
            return (Criteria) this;
        }

        public Criteria andCurCostLessThanOrEqualTo(Double value) {
            addCriterion("cur_cost <=", value, "curCost");
            return (Criteria) this;
        }

        public Criteria andCurCostIn(List<Double> values) {
            addCriterion("cur_cost in", values, "curCost");
            return (Criteria) this;
        }

        public Criteria andCurCostNotIn(List<Double> values) {
            addCriterion("cur_cost not in", values, "curCost");
            return (Criteria) this;
        }

        public Criteria andCurCostBetween(Double value1, Double value2) {
            addCriterion("cur_cost between", value1, value2, "curCost");
            return (Criteria) this;
        }

        public Criteria andCurCostNotBetween(Double value1, Double value2) {
            addCriterion("cur_cost not between", value1, value2, "curCost");
            return (Criteria) this;
        }

        public Criteria andPreCostTotalIsNull() {
            addCriterion("pre_cost_total is null");
            return (Criteria) this;
        }

        public Criteria andPreCostTotalIsNotNull() {
            addCriterion("pre_cost_total is not null");
            return (Criteria) this;
        }

        public Criteria andPreCostTotalEqualTo(Double value) {
            addCriterion("pre_cost_total =", value, "preCostTotal");
            return (Criteria) this;
        }

        public Criteria andPreCostTotalNotEqualTo(Double value) {
            addCriterion("pre_cost_total <>", value, "preCostTotal");
            return (Criteria) this;
        }

        public Criteria andPreCostTotalGreaterThan(Double value) {
            addCriterion("pre_cost_total >", value, "preCostTotal");
            return (Criteria) this;
        }

        public Criteria andPreCostTotalGreaterThanOrEqualTo(Double value) {
            addCriterion("pre_cost_total >=", value, "preCostTotal");
            return (Criteria) this;
        }

        public Criteria andPreCostTotalLessThan(Double value) {
            addCriterion("pre_cost_total <", value, "preCostTotal");
            return (Criteria) this;
        }

        public Criteria andPreCostTotalLessThanOrEqualTo(Double value) {
            addCriterion("pre_cost_total <=", value, "preCostTotal");
            return (Criteria) this;
        }

        public Criteria andPreCostTotalIn(List<Double> values) {
            addCriterion("pre_cost_total in", values, "preCostTotal");
            return (Criteria) this;
        }

        public Criteria andPreCostTotalNotIn(List<Double> values) {
            addCriterion("pre_cost_total not in", values, "preCostTotal");
            return (Criteria) this;
        }

        public Criteria andPreCostTotalBetween(Double value1, Double value2) {
            addCriterion("pre_cost_total between", value1, value2, "preCostTotal");
            return (Criteria) this;
        }

        public Criteria andPreCostTotalNotBetween(Double value1, Double value2) {
            addCriterion("pre_cost_total not between", value1, value2, "preCostTotal");
            return (Criteria) this;
        }

        public Criteria andCurCostTotalIsNull() {
            addCriterion("cur_cost_total is null");
            return (Criteria) this;
        }

        public Criteria andCurCostTotalIsNotNull() {
            addCriterion("cur_cost_total is not null");
            return (Criteria) this;
        }

        public Criteria andCurCostTotalEqualTo(Double value) {
            addCriterion("cur_cost_total =", value, "curCostTotal");
            return (Criteria) this;
        }

        public Criteria andCurCostTotalNotEqualTo(Double value) {
            addCriterion("cur_cost_total <>", value, "curCostTotal");
            return (Criteria) this;
        }

        public Criteria andCurCostTotalGreaterThan(Double value) {
            addCriterion("cur_cost_total >", value, "curCostTotal");
            return (Criteria) this;
        }

        public Criteria andCurCostTotalGreaterThanOrEqualTo(Double value) {
            addCriterion("cur_cost_total >=", value, "curCostTotal");
            return (Criteria) this;
        }

        public Criteria andCurCostTotalLessThan(Double value) {
            addCriterion("cur_cost_total <", value, "curCostTotal");
            return (Criteria) this;
        }

        public Criteria andCurCostTotalLessThanOrEqualTo(Double value) {
            addCriterion("cur_cost_total <=", value, "curCostTotal");
            return (Criteria) this;
        }

        public Criteria andCurCostTotalIn(List<Double> values) {
            addCriterion("cur_cost_total in", values, "curCostTotal");
            return (Criteria) this;
        }

        public Criteria andCurCostTotalNotIn(List<Double> values) {
            addCriterion("cur_cost_total not in", values, "curCostTotal");
            return (Criteria) this;
        }

        public Criteria andCurCostTotalBetween(Double value1, Double value2) {
            addCriterion("cur_cost_total between", value1, value2, "curCostTotal");
            return (Criteria) this;
        }

        public Criteria andCurCostTotalNotBetween(Double value1, Double value2) {
            addCriterion("cur_cost_total not between", value1, value2, "curCostTotal");
            return (Criteria) this;
        }

        public Criteria andCostRatioIsNull() {
            addCriterion("cost_ratio is null");
            return (Criteria) this;
        }

        public Criteria andCostRatioIsNotNull() {
            addCriterion("cost_ratio is not null");
            return (Criteria) this;
        }

        public Criteria andCostRatioEqualTo(Double value) {
            addCriterion("cost_ratio =", value, "costRatio");
            return (Criteria) this;
        }

        public Criteria andCostRatioNotEqualTo(Double value) {
            addCriterion("cost_ratio <>", value, "costRatio");
            return (Criteria) this;
        }

        public Criteria andCostRatioGreaterThan(Double value) {
            addCriterion("cost_ratio >", value, "costRatio");
            return (Criteria) this;
        }

        public Criteria andCostRatioGreaterThanOrEqualTo(Double value) {
            addCriterion("cost_ratio >=", value, "costRatio");
            return (Criteria) this;
        }

        public Criteria andCostRatioLessThan(Double value) {
            addCriterion("cost_ratio <", value, "costRatio");
            return (Criteria) this;
        }

        public Criteria andCostRatioLessThanOrEqualTo(Double value) {
            addCriterion("cost_ratio <=", value, "costRatio");
            return (Criteria) this;
        }

        public Criteria andCostRatioIn(List<Double> values) {
            addCriterion("cost_ratio in", values, "costRatio");
            return (Criteria) this;
        }

        public Criteria andCostRatioNotIn(List<Double> values) {
            addCriterion("cost_ratio not in", values, "costRatio");
            return (Criteria) this;
        }

        public Criteria andCostRatioBetween(Double value1, Double value2) {
            addCriterion("cost_ratio between", value1, value2, "costRatio");
            return (Criteria) this;
        }

        public Criteria andCostRatioNotBetween(Double value1, Double value2) {
            addCriterion("cost_ratio not between", value1, value2, "costRatio");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}